package com.migo.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;


/**
 * PVMG10样片
 * 
 * @author powervision
 * @email zhenrong.xu@powervision.me
 * @date 2021-03-29 19:35:46
 */
public class MgSampleVideoEntity implements Serializable,Comparable {
	private static final long serialVersionUID = 1L;
	
	//
	private Integer id;
	//分栏ID-展示时候要根据此ID将视频展示在某一栏
	private int columnstypeId;
	//产品id
	private int proid;
	//MD5值
	private String mdCode;
	//视频地址
	private String videoUrl;
	//排序编码
	private Integer sort;
	//语言
	private String language;
	//创建时间
	private Date createDate;
	//标题
	private String title;
	//封面
	private String coverImage;
	//链接
	private String link;
	//状态 0为正常显示，1为隐藏
	private Integer status;
	//用户id
	private String userId;

	private String userName;
	//用户头像
	private String headSculpture;

	//视频索引
	private ArrayList<Map<String,Object>> videoDetails;


	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}

	public int getColumnstypeId() {
		return columnstypeId;
	}

	public void setColumnstypeId(int columnstypeId) {
		this.columnstypeId = columnstypeId;
	}

	public int getProid() {
		return proid;
	}

	public void setProid(int proid) {
		this.proid = proid;
	}

	/**
	 * 设置：MD5值
	 */
	public void setMdCode(String mdCode) {
		this.mdCode = mdCode;
	}
	/**
	 * 获取：MD5值
	 */
	public String getMdCode() {
		return mdCode;
	}
	/**
	 * 设置：视频地址
	 */
	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}
	/**
	 * 获取：视频地址
	 */
	public String getVideoUrl() {
		return videoUrl;
	}
	/**
	 * 设置：排序编码
	 */
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	/**
	 * 获取：排序编码
	 */
	public Integer getSort() {
		return sort;
	}
	/**
	 * 设置：语言
	 */
	public void setLanguage(String language) {
		this.language = language;
	}
	/**
	 * 获取：语言
	 */
	public String getLanguage() {
		return language;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateDate() {
		return createDate;
	}
	/**
	 * 设置：标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：标题
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * 设置：封面
	 */
	public void setCoverImage(String coverImage) {
		this.coverImage = coverImage;
	}
	/**
	 * 获取：封面
	 */
	public String getCoverImage() {
		return coverImage;
	}
	/**
	 * 设置：链接
	 */
	public void setLink(String link) {
		this.link = link;
	}
	/**
	 * 获取：链接
	 */
	public String getLink() {
		return link;
	}
	/**
	 * 设置：状态 0为正常显示，1为隐藏
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：状态 0为正常显示，1为隐藏
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * 设置：用户id
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户id
	 */
	public String getUserId() {
		return userId;
	}
	/**
	 * 设置：用户头像
	 */
	public void setHeadSculpture(String headSculpture) {
		this.headSculpture = headSculpture;
	}
	/**
	 * 获取：用户头像
	 */
	public String getHeadSculpture() {
		return headSculpture;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public ArrayList<Map<String, Object>> getVideoDetails() {
		return videoDetails;
	}

	public void setVideoDetails(ArrayList<Map<String, Object>> videoDetails) {
		this.videoDetails = videoDetails;
	}

	@Override
	public int compareTo(Object o) {
		MgSampleVideoEntity mgSampleVideoEntity = (MgSampleVideoEntity)o;
		if(this.sort > mgSampleVideoEntity.sort){
			return 1;
		}
		if(this.sort < mgSampleVideoEntity.sort){
			return -1;
		}
		return 0;
	}
}
